package com.hongdee.scm.allocationorder.service;

import java.util.List;
import java.util.Map;

/**
 * Created by Mr. Xu on 2017/5/15.
 */
public interface ITScmAllocationOrderService {
    /**
     * 调拨单分页
     *
     * @param data
     * @param start
     * @param limit
     * @param uid
     * @return
     * @throws Exception
     */
    public Map page(Map data, String start, String limit, String uid) throws Exception;

    /**
     * 保存修改
     *
     * @param data
     * @param uid
     * @return
     * @throws Exception
     */
    public void saveOrUpdate(Map data, String uid) throws Exception;
    /**
     * 根据调拨单id
     * @param allocationId
     * @param uid
     * @return
     * @throws Exception
     */
    public List carList (String allocationId, String uid) throws Exception;
    /**
     * 提交或审核
     * @param uid
     * @param id
     * @param status
     * @throws Exception
     */
    public void submitOrPass (String uid,String id,String status) throws Exception;

    /**
     * 车辆列表查询
     * @param uid
     * @param data
     * @return
     * @throws Exception
     */
    public List list(String uid,Map data) throws Exception;

    /**
     * 审批调拨分页
     *
     * @param data
     * @param start
     * @param limit
     * @param uid
     * @return
     * @throws Exception
     */
    public Map approvalPage(Map data, String start, String limit, String uid) throws Exception;

    /**
     * 更新调拨出库打印次数
     * @param ids
     * @throws Exception
     */
    public void addTime(String[] ids) throws Exception;

    public Map pageFinance(Map data, String start, String limit, String uid) throws Exception;

    public Map appApprovalPage(Map data, String start, String limit, String uid) throws Exception;

    public void saveAllocation(Map data,String uid) throws Exception;
}
